package edu.clemson.wcbeck.cft;

import android.app.Activity;
import android.media.MediaPlayer;
import android.os.Bundle;
import android.widget.TextView;

public class CFTTeamNews extends Activity{

	MediaPlayer mediaPlayer = CFTTeamSongs.mediaPlayer;
	
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        
        TextView textview = new TextView(this);
        textview.setText("This is the team news tab");
        setContentView(textview);
    }
    
    @Override
    public void onBackPressed() {
    	// TODO Auto-generated method stub
    	if(mediaPlayer.isPlaying()) { mediaPlayer.stop(); }
    	super.onBackPressed();
    }
}
